package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class IndexController {

    @GetMapping("/indexHtml")
    public String  index(ModelMap modelMap){
        modelMap.addAttribute("msg","Hello");
        return "index";
    }

    @GetMapping("/indexFtl")
    public String  index2(ModelMap modelMap){
        modelMap.addAttribute("msg","文件上传下载");
        return "index2";
    }
}
